package com.andrewswan.gamenight.domain.person;

import java.lang.String;
import java.lang.SuppressWarnings;
import javax.persistence.EntityManager;
import javax.persistence.Query;

privileged aspect Person_Roo_Finder {
    
    @SuppressWarnings("unchecked")
    public static Query Person.findPeopleByOpenIDEquals(String openID) {
        if (openID == null || openID.length() == 0) throw new IllegalArgumentException("The openID argument is required");
        EntityManager em = Person.entityManager();
        Query q = em.createQuery("SELECT Person FROM Person AS person WHERE person.openID = :openID");
        q.setParameter("openID", openID);
        return q;
    }
    
}
